import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const FORM: AppRouteRecordRaw = {
  path: '/form',
  name: 'data process',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.form',
    icon: 'icon-settings',
    requiresAuth: false,
    order: 3,
  },
  children: [
    {
      path: 'datainit',
      name: 'datainit',
      component: () => import('@/views/form/datainit/index.vue'),
      meta: {
        locale: 'menu.form.datainit',
        requiresAuth: false,
        roles: ['admin'],
      },
    },
    {
      path: 'payrollprocess',
      name: 'payrollprocess',
      component: () => import('@/views/form/payrollprocess/index.vue'),
      meta: {
        locale: 'menu.form.payrollprocess',
        requiresAuth: false,
        roles: ['admin'],
      },
    },
    {
      path: 'group',
      name: 'Group',
      component: () => import('@/views/form/group/index.vue'),
      meta: {
        locale: 'menu.form.group',
        requiresAuth: false,
        roles: ['admin'],
      },
    },
    {
      path: 'taskList',
      name: 'taskList',
      component: () => import('@/views/form/taskList/index.vue'),
      meta: {
        locale: 'menu.form.tasklist',
        requiresAuth: false,
        roles: ['admin'],
      },
    },
    {
      path: 'scenario',
      name: 'scenario',
      component: () => import('@/views/form/scenario/index.vue'),
      meta: {
        locale: 'Scenario Setting',
        requiresAuth: false,
        roles: ['admin'],
      },
    },
    {
      path: 'regulation',
      name: 'regulation',
      component: () => import('@/views/form/regulation/index.vue'),
      meta: {
        locale: 'Regulation Setting',
        requiresAuth: false,
        roles: ['admin'],
      },
    },
    {
      path: 'category',
      name: 'category',
      component: () => import('@/views/form/category/index.vue'),
      meta: {
        locale: 'Category Setting',
        requiresAuth: false,
        roles: ['admin'],
      },
    },
  ],
};

export default FORM;
